/**
 * 
 */
package cz.cvut.fit.bugtrac.publicmodel.dto.metadata;

import javax.xml.bind.annotation.XmlAttribute;

import cz.cvut.fit.bugtrac.publicmodel.dto.BaseDTO;

/**
 * data transfer object for Author (also JAXB bean)
 * 
 * @author Jarec
 * 
 */
public class AuthorDTO extends BaseDTO {
	private static final long serialVersionUID = 1L;

	private String name;
	private String city;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	@XmlAttribute(name = "name", required = true)
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city
	 *            the city to set
	 */
	@XmlAttribute(name = "city", required = true)
	public void setCity(String city) {
		this.city = city;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("AuthorDTO [name=");
		builder.append(name);
		builder.append(", city=");
		builder.append(city);
		builder.append("]");
		return builder.toString();
	}

}
